/*
 * Copyright (c)  2015~2020, xforceplus
 * All rights reserved.
 * Project:datacare-orm
 * Id: AbstractDeleteSqlManager.java   2020-10-11 01-00-31
 * Author: Evan
 */
package cn.datacare.orm.manager.impl;

import cn.datacare.orm.manager.DeleteSqlManager;

/**
 * <p>
 * Title:
 * </p>
 * <p>
 * Description:
 * </p>
 * <p>
 * Copyright: 2015~2020
 * </p>
 * <p>
 * Company/Department: xforceplus
 * </p>
 *
 * @author Evan
 * <b>Creation Time:</b> 2020-10-11 01-00-31
 * @since V1.0
 */
public abstract class AbstractDeleteSqlManager extends AbstractTemplateSqlManager implements DeleteSqlManager {

    /**
     * delete from user where 1=1 and id= #id#
     * <p>
     * 根据Id删除数据：支持联合主键
     *
     * @param clazz
     * @param keyValue
     * @return int 删除行数
     */
    @Override
    public int deleteById(Class<?> clazz, Object keyValue) {
        return 0;
    }

    /**
     * 删除对象, 通过对象的主键
     *
     * @param obj 对象,必须包含了主键，实际上根据主键来删除
     * @return int 删除行数
     */
    @Override
    public int deleteObject(Object obj) {
        return 0;
    }
}
